﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeiJiZCX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ChaXunGL.WebForm1" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<%--<%@ Register Assembly="DevExpress.Web.ASPxGridView.v15.2.Export, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>--%>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size:12px;
        }

        #img table tr td div {
            cursor: pointer;
        }


    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });

       
       

       
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            采集数据查询
        </div>
       <%-- <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>--%>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe">
                        <table>
                            <tr>
                                 <td style="width:80px;"><span style="font-size: 12px;">年：</span></td>
                                <td style="width:100px;">
                                    <dx:ASPxTextBox runat="server" ID="txtShuiLiangYM"  Width="90%" ClientInstanceName="txtShuiLiangYM">
                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                               
                               <td>&nbsp;&nbsp;</td>
                                <td>
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}"/>
                                    </dx:ASPxButton>
                                     <dx:ASPxButton runat="server" ID="btnXiuGai" Text="修改"  Visible="false" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){OpenDia();}"/>
                                    </dx:ASPxButton> 
                                </td>
                                 <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server"  Text="导出EXCEL"  UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                    </dx:ASPxButton>
                                </td>
                                <td>&nbsp;&nbsp;</td>
                                <td>
                                    <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                       
                            <div style="float: right; border: 1px solid #d0e4fe; width: 100%;">
                               
                                <div>
                                    <dx:ASPxGridView ID="gvYongHuXX" ClientInstanceName="gvYongHuXX" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" 
                                        ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%"   EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="BH" Caption="设备编号" Width="15%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="MC" Caption="设备名称" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="SJ" Caption="采集数据" Width="15%" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="ID" Caption="监测量编号" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="RQ" Caption="采集时间" Width="20%" PropertiesTextEdit-DisplayFormatString="{0:yyyy-MM-dd}">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <Settings VerticalScrollBarMode="Visible"  HorizontalScrollBarMode="Auto"  VerticalScrollableHeight="500"/>
                                        <SettingsPager   Mode="EndlessPaging" PageSize="100"  />
                                        <Settings ShowFooter="True" />
                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        <%--<ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}" />--%>
                                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                        <%--<ClientSideEvents Init="function(s,e){AdjustSize(400,gvYongHuXX);}"  />--%>
                                    </dx:ASPxGridView>
                                </div>
                               
                                <hr />
                               
                            </div>
                       
                    </div>
                </div>
               
               
            </ContentTemplate>
        </asp:UpdatePanel>

        <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>
    </form>
</body>
</html>
